/**
 * Copyright 2015 Qiyi Inc. All rights reserved.
 * 
 * @file:   Channel.Config.js
 * @path:   js-src/StatisticOcr/
 * @desc:   StatisticOcr公共配置集合，键值对象
 *          一级键名大写，之间名采用驼峰式
 * @author: zhang@qiyi.com
 * @date:   2016-03-28
 */
///import js-src/lib/
///import js-src/com/
qui(function(require, exports, module){
        StatisticSty2.Config = $.extend({}, Ancestor.Config, {

            TABLE_COLMODEL_CONFIG: {
                channelId: {
                    name: 'channelId',
					index:'channelId',
                    title: false,
                    width: 80,
				    align: 'center',
				    hidden: true,
					sortable: false
                },
                channelName: {
                    name: 'channelName',
					index:'channelName',
                    title: false,
                    width: 80,
				    align: 'center',
					sortable: false
                },
                channelCode: {
                    name: 'channelCode',
					index:'channelCode',
                    title: false,
                    width: 80,
				    align: 'center',
				    hidden: true,
					sortable: false
                },
                programId: {
                    name: 'programId',
					index:'programId',
                    title: false,
                    width: 80,
				    align: 'center',
				    hidden: true,
					sortable: false
                },
                programName: {
                    name: 'programName',
					index:'programName',
                    title: false,
                    width: 80,
				    align: 'center',
					sortable: false
                },
                categoryName: {
                    name: 'categoryName',
                    index: 'categoryName',
                    width: 100,
                    align: 'center',
                    title: false,
                    sortable: false
                },
                albumName: {
                    name: 'albumName',
					index:'albumName',
                    title: false,
                    width: 80,
				    align: 'center',
					sortable: false
                },
                programTime: {
                    name: 'programTime',
					index:'programTime',
                    title: false,
                    width: 100,
				    align: 'center',
					sortable: false,
					formatter:function(v, o, r){
					    return StatisticSty2.Util.programMinutes(v, o, r);
					}
                },
                headerCompleteNumbers: {
                    name: 'headerCompleteNumbers',
                    index:'headerCompleteNumbers',
                    title: false,
                    width: 100,
                    align: 'center',
                    sortable: false
                },
                headerIncompleteNumbers: {
                    name: 'headerIncompleteNumbers',
                    index:'headerIncompleteNumbers',
                    title: false,
                    width: 100,
                    align: 'center',
                    sortable: false
                },
                headerFaultNumbers: {
                    name: 'headerFaultNumbers',
                    index:'headerFaultNumbers',
                    title: false,
                    width: 100,
                    align: 'center',
                    sortable: false
                },
                lastCompleteNumbers: {
                    name: 'lastCompleteNumbers',
                    index:'lastCompleteNumbers',
                    title: false,
                    width: 100,
                    align: 'center',
                    sortable: false
                },
                lastIncompleteNumbers: {
                    name: 'lastIncompleteNumbers',
                    index:'lastIncompleteNumbers',
                    title: false,
                    width: 100,
                    align: 'center',
                    sortable: false
                },
                lastFaultNumbers: {
                    name: 'lastFaultNumbers',
                    index:'lastFaultNumbers',
                    title: false,
                    width: 100,
                    align: 'center',
                    sortable: false
                },
                adCompleteNumbers: {
                    name: 'adCompleteNumbers',
                    index:'adCompleteNumbers',
                    title: false,
                    width: 100,
                    align: 'center',
                    sortable: false
                },
                adIncompleteNumbers: {
                    name: 'adIncompleteNumbers',
                    index:'adIncompleteNumbers',
                    title: false,
                    width: 100,
                    align: 'center',
                    sortable: false
                },
                adFaultNumbers: {
                    name: 'adFaultNumbers',
                    index:'adFaultNumbers',
                    title: false,
                    width: 100,
                    align: 'center',
                    sortable: false
                },
                user: {
                    name: 'user',
					index:'user',
                    width: 80,
					align: 'center',
                    sortable: false,
                    title: false
                },
                statisticTime: {
                    name: 'statisticTime',
                    index:'statisticTime',
                    title: false,
					sortable: false,
                    width: 120,
                    align: 'center'
                },
            },

            TABLE: { //列表配置
                url: '/api/statisticSty2/list',
				//datatype:"jsonp",
				multiselect: false,
					
				loadtext:'加载中...',
				loadui:'block',
				rowNum:20,

                loadBeforeSend:function(xhr, settings){
                    var auth = Ancestor.Util.getAuth(Ancestor.Config.EPG_AUTH.list);
                    xhr.setRequestHeader('Sign',auth.sign);
                    xhr.setRequestHeader("Time",auth.clientTime);
                    xhr.setRequestHeader("From",auth.from);
                    return true;
                },
				
				prmNames :{
					 page:"pageNo",
					 rows:"pageSize",    
				 },

                colNames: ["频道ID", "节目ID","所属电视台代码","节目原名","所属专辑", "频道","所属电视台","节目时长(时分秒)","片头完全准确数","片头部分准确数","片头不准确数","片尾完全准确数","片尾部分准确数","片尾不准确数","广告完全准确数","广告部分准确数","广告不准确数","制作者","创建时间"],

                colModel: ['channelId', 'programId', 'channelCode','programName', 'albumName', 'categoryName','channelName','programTime','headerCompleteNumbers','headerIncompleteNumbers','headerFaultNumbers','lastCompleteNumbers','lastIncompleteNumbers','lastFaultNumbers','adCompleteNumbers','adIncompleteNumbers','adFaultNumbers','user','statisticTime']
            },

            TABLE_HIDDEN: {
                colNames: ["节目ID","节目原名","所属专辑", "频道","所属电视台","节目时长(时分秒)",
                    "片头完全准确数","片头部分准确数","片头不准确数","片尾完全准确数","片尾部分准确数","片尾不准确数",
                    "广告完全准确数","广告部分准确数","广告不准确数","制作者","创建时间"
                    ],

                colModel: ['programId','programName','albumName','categoryName','channelName','programTime',
                    'headerCompleteNumbers','headerIncompleteNumbers','headerFaultNumbers',
                    'lastCompleteNumbers','lastIncompleteNumbers','lastFaultNumbers',
                    'adCompleteNumbers','adIncompleteNumbers','adFaultNumbers','user','statisticTime'
                    ]

            }
        });
	}
);